fix validation that would never get executed