Fix auto-expansion of projects