Fixes segfault when deleting multiple poses