fix simulate