fix ternary precedence issue
release 0.5.8