fix to id conversion
Don't do unnecessary temp set deletion