Fixed range refreshing bug