fix for loop slide