Fixed bug on click to tune function