Typo and if line fix