avoid infinite loop cause by validation output