updating refresh bug