Fixed clear plot bug