fixed refresh bug and minute bug