fix send error bug