1320: fixed if expressions