fix rsp leak