Fix datepicker

This at least makes it possible to test :)