Fixes a typo in if statement.