fixed bug on non-optimized opposite references