bug fixes for xmlsitemap and gd