Fixed the if statement, now it should work