Fixed a typo and corrected the return type of it