fixed refresh issue