fixed null pointer in prov