Fixing missing invoice problem