Fix slider render bug