fix stack elementid persistance