fixes for some bad data in make_apex_cubes (I don't know why I didn't
encounter this problem before)