infinite looping bug squashed