Fix for update env attributes after removing instance