Bug in setEditor fixed