add invoice bug fixed