Fix for Date insert