fixing cached_messages error