[!!!][BUGFIX] Fix wrong error path of validation