fixing pie and all pages