Solution: Need to add following line under above method generator.appliesPreferredTrackTransform=true