Fix one problem but not all problems (re: replaceVars anda checkAttrs)