Fixed log variable name error.