MEDIUM / Fixed various compile errors after xmlcode disconnecting