activity refresh bug fix