Fixes a calendar controller  problem.