fixing calendar reload problem