Fixed bug caused by typo