Assuming that you've modified clearMessage() to redisplay the persistent message, you need to set persistentMessage to null before you call clearMessage.