fix rtn code bug