Fix an incorrect return value