fix bug when drawingOptions is None