Correct return value and fix spelling mistake