fixed minor bug with 'Invert'