Fix document Drop method when removing array elements.