Fix bug where infinite loops only played once.