fix broken semester detection