fix bug in Day init