Fix field value loss on focus/blur.