fixes for CocoaScript (Sketch 3.0.2)