Fix startup error on plotting