Found insertAt causes loop