Fix bugs in deletion of reply or post