Fix date view helper