fix calendar if no course