Fix backwards if statement.