fixed array_reverse