fix bug in elemental