return_to_param: fix a crashing bug