fixed bug update before send