fixes related with cleanForReprovision

The name is sufficient explaination