fix graphcs niceplot, nicelegend crashes.