fix wrong variable names