Remove use of deprecated vector get method.