fix plotter withContext on OSX