Fixed exception for activities on #274