fix insets bugs