Fix bad return code