fixed issue with deleting middle problems