More global currentIndex
fix #399 (WMTS layer order issue)