invoice upload fixes