fix bug with handling '%B = cnst'