fix restored partial grade calculation