fixed small bug when attributes method was used on an element