change files' permission in cache directory to prevent errors