fix memory out bug with check is_array