fixed issue with creating box