changed the way as an array is access to remove warning. boring commit really...