fixing contract signing bug