patch this weird looping bug that sometimes occurs