fixed slider not updating bug