fixing bug in new quasi-calendar