Bug fix in AFDS course calculator