fix strict typecast ternary by 40aaef8