fix bug for currentmessagecontext