I'll try and see if i can recreate your issue with the castbar staying after you clear the target, so I can fix it. As for the NaN.0, thought I fixed that. I'll have a look at both issues.
It will not be able to retrieve the name of a cast, if target is acquired mid cast. But I can make the progress show regardless.
I just need to find the time...