stop just before the end fixes #8