FIX File permission checks