Fix for date picker not selecting anything