fix send msg and error refresh