Fixed mistake that prevented activity origins being recorded, reduced memory churn when updating origins in the db.