Fixed typo

fix type in if statement