Fixed for loop initialisation in C-style