fixed bug when no activities exist for a type