tmx: fix wrong behaviors
tmx: faster startup