Sliders are not reset by a compilation failure. They are reset when you modify the code.