Fix #163 validation was incorrect