Fixing bad idx number