Fixed a bug where different activities within a course would have the same id