Contract generation fix.