fix mercury editor