resolve refresh bug