Fixed wrong hash access on array ref.