fix a bug in the message override method