bug with the index on the processed trigger table