fix concurrentModificationException in ProvisionManager, remove some warnings