Add Index for fixed bug sql 1005