fixed provisioning bug