fix afew issues in SCEditor