Fixing some permission issues