fix to empty messages view crash