fix parenthesis in if-condition