Missing initialization in simulator. Does if fix #937?