debug segfault when removing a story