fixed bug with el.getAttribute()