fixed empty attr causing error