Fixed bugs in emulink: first file of the project was overwritten; canvas was not cleared when a new project was open