Fixed the delete issue