Fixed error in calculating behavior combination priorities.
Fixed face tag name. Added element type checking.