fix crash due to typo