Fixed a bug that message object was released before returning value by callback