process spelling mistake causes undefined error