Generator error if a box has no shape