fixed calendar ajax bug