fix box delete bug