Fix contract rendering