mesa: fix bug in evaluation of structure fields