Fixing typo bug that was causing a crash