FIX Reverted file permission check