fix minor typo in the ret val code