Fixed a bug when a persistent message was set