Fixed minor logical error in "Calendar" library