Fix the extent of MgRecordShape. Add selection log.