Corrected typo bug that was found by Xcode as a warning