fix slider crash