fixed max stack error of validator