Fixed head tag checking.