fix log scale issues