fixing issue with missing index