Solve issue of same operation being returned everytime