fix cluster stop generator to work correctly in reverse mode.