Fixed the crash due to a typo