fixed type in if-condition