fix calendar "default view not working" bug