fixes Activities.run method