bugfix delete feature (index out of range after a feature was deleted)