small fixes to min/max for cubes, URL constructor, etc