Fixed Incorrect if statement.