fixed segfault at end of stages added number to load simulation