Fixed bug in activity editor implementation.