fixed not serialisable exception in cache