fix bug invalid form