fix when request_path is nil