fixed TMS rendering