Fix a small bug in drop index