Fixed bug in slider not being re-rendered