Fix index counter when using recordset