Fix bad return value