Fix for issue #125, sliders not working with media and a bunch of undefined index.