fix a bug

different naming of parameter and variable