fixed modal console errors (dupe problems)