fix bug with slider