fix check for existing simulation file