fix popMessages