BS-9697, fix contract rule with valid expression