fixed missing semicolon in loop