many MG bugs corrected