fixed datepicker rendering issue