fix bug with selecting forignobject