fixed the new version where cube diagonal length is min_ll