fixed a few bugs for Popover at calendar