fix permission of cache