fix Advance on Contract