bug fixed that never remove a last clsasName.