Fix for date inserted