fixing the element creation persistence