fixing bug related to negative logic on os filter