Fixed a bug caused by a typo