Correct bug on trackbar value