Fixed a bug that warning from message handler