fixed 'if'