Fixed function retval handling