clean up assignment in rstats plugin