fixed trace bug with writing 2+ operations