fixed invoise save issue