Fixed bug that arises when there are assignments but no grades