simulator minor error fixes