fixed bunch of rules that break on non tag elements