bug fixing for Mage Customer ID