Fix error on validation