optimized many2one and fixed bug