fix a crash with width(%foo) in expressions