A bug in "simulate.c" was fixed.