Fix project selection dialog functionality.
Fix null reference exception.