Fix for slider refresh bug