Fix permissions on bundle