A Moduli Fixing Mechanism in M theory