fixup bug for the ret > 0 to ret > 1