fix bug where 'mode' (is|not) is not specified