Fix #6: Added correct passing of parameter for datepicker