don't make refs too long (bug)