fixed error in getOwnName function