fix location object reference #145