Small typo causing code to not compile