fix serialize method for request_details