Fixing bug when adding categories/locations to empty install