fix error in contract