fixed bug with slider