Fixed a bug in slider ranges