fixed empty message not displaying