Fix error exception caused by typo