Fixing obj.Optic.XXX old syntax