fix diagnostic hsroc segfault plotting problem