bug fixes for ratio plots.