fixed a variable in unring