fix warning, fix copy-paste typo causing failures