Mgalctc small bugs fixing