Sometimes, in the "SmartDateTimeTextBlickGrid_MouseLeave" event in the "TimeSpanHeader.cs" file, an exception is raised. This happens only the first time that the event is fired. But it's totally random.
An "is" statement has been added in order to avoid the exception.
if ((((Border) this.Parent).DataContext) is TimeUnit)
{
...
}