Fixing looping hsv