calendar retrieval bugfix