Bugfix for activities