refactor users splice bug fix