fix X permission issues