fixed contract value bug