fix for loop seq