fix capslide bug