fixed error when boxed