fix the sending location msg issue