bug fixes about colors in graph simulation