fixed bug with finishing simulation