Fix chat messages not working for anonymous users