fix plot max value