fix error when remove eval for opts.type; had to fix in both spots