fixed operation of popup calendar