fix for tricky xml pages