fixed delete field when using loaded diagram