Fixed bug in slider with type conversion