fixed bug adding element to some position