Fix not being able to deactivate contexts