fix bug of index close

Change-Id: I0437286d01956907f559767851574d7cc09a1c79
Signed-off-by: li levi <levi.li@sap.com>