If loop fix, also spelling because I'm an idiot