precision of gradient legend fixed