fixed crash when open message