Fixed for statement missing a curly bracket