Fixed the array acess variable