Finally fix routes being loaded before middleware