Removed the element type from the reset rules for matching brackets