calendar bugfix