need to fix send msg bug