bug fix clearing the result