Fix empty date upload