small fix in if expression