Fixed wmts/tms problems.