Typo and wrong return value

Minor things, type and wrong return value