fixing up infinite loop update problemo