fixes an autoslide bug