fix valid flag on constraint solutions