Fixed an issue with the slider not initing