calendar output fix