fixed purge files permission