fix the location label refresh issue