Fix to build and user permissions