fix provider restoring