Fix current function using if slider option empty