Fixed a getSelectedProject bug