fixed array_get bug