add_activity bugfix