Fixed sharing view when inherit is removed.