Fixed Invoice modelSync function