Fixed problem with string replacement in activity dashboard error messages