CRUD->addRef and addFrame fix

As noted here:
https://groups.google.com/d/msg/agile-toolkit-devel/9vlsxb-YE4w/iqSwilnnWnMJ