fix bug of boxes