Fix activation/deactivation of projects.