Solve errors in some files

Some errors which don't allow to use the editor because of errors are fixed