Fixed loop update