Fix type and wrong variable name.