other fixes to WMTS and TMS sources