fix send resource bug