Fixed bugs to make DynamicTags1/2/3 tests pass.