I believe that particular problem occurs when the { SET } field has been
inserted but not actually executed. At that point there is no "Check"
bookmark, so the REF field causes an error. After the { SET } field has been
executed once, the error disappears.