bug fix - set correct environment for get

inside .objectNames function