fix in loop