Fix crash that happened when removing a post

fixes #5