fixed add new element bug