make valid? work on 1.9.3