Corrected slider bug