fixed two validation errors