fixed bug with new element