Fix errors in simulation