retval fix