Fix Bug in Editor