Fix bug with plots always showing zero.