fixed: deleting of first and last seg plus history