make sure removing from list of size 1 doesn't segfault