fix for activity restructure

fixes http://forum.civicrm.org/index.php/topic,29774.0.html