fix a bug which dose not return tuple exactly when we use similarity