[core][bug] boolean storing condition result wrongly reset