Fixed bug when creating boxes from the webui