fixed bug with update calendar