Fix postgress index error