cube and graph bug fixed