fix overflow on invoice