fixes issue with refreshing routes