Bugfix for slider