Change check order to avoid UI crash. Avoid crash when closed project is selected.