fix harakiri loop