fixed regression bug caused by typo