Fix order of custom route registration