fixed bug on elements