Bug fixes in ED.REFRESH