Fixes for invoice reload script