fixes validation