method objectenv bug
put self in objectenv