Fixed crash on windows; Improved start.tmap performance