fixed bug with finding of ID attribute instead of name