on error route page loader was not getting removed. fixed