fix copy/paste error in unused code