fix usage of box class