Bug fixes in MG1