This should hopefully fix the error of cube designs having the wrong function being run.