Fixed datepicker initialize bug, which prevent datepicker functionality after first init.