Fixed a minor bug in poi-delete