fix bug in msg bad located