fix some linux bug
manage template
fix tile width