Fixed #968: Regression: routing callbacks cannot modify options