Fix colorpicker function in compat3x plugin