Fix view refreshing