BAC-700: fixed incorrect condition