fix tiles mode