Fix indexes on invoice