fix sliding issue