Fix usage of incorrect array key.