fixed a value refresh bug