Fixes validationerror bugs