Fixed typo and if block error relating to last commit.