simulator: fix initialization bug for profiling