bug fix on not_if block