Fixed typo near if statement