Fixed variable name in plot script