fixed bug with caching schemas