Fix route registering