fixed issues with ViewInstanceProvider removal