Bug fix for activity editor.