minor simulation bug fixed