Fixed typo issue in controller