Another fix for log scale problem