remove open class after closed