Fix graph simulation