Fix refreshing the spec window.