fix gen() being called with an non existant route