fix deprecation warning when declaring routes using #match