Reset length of set when calling remove