fix bug with no updating of calendar