bug when switching between visual and text mode under projects.