fix provisioning bug