fix bug on result deletion