fix bug in validate