[MAJOR BUG FIX] idx value should start from 1