refresh bug fix