fix shorthand if