fixed condition in if statement.