fix redirect bug in jcalendar