fixed gatehring data with array_flip was giving headaches
i fixed just get the keys directly

Signed-off-by: ryonagana <nicholasluis@gmail.com>