Tidy ups to DeleteLines bug