Debugging svg not cleaning up