Highlight duplicate declarations and fixed #1