Fixed a bug with routes ($config not set)