Better bug fix for AP course calculator