fixed showmessage bug