Bug fix: checking if degree is selected