Exception:array out of range

Signed-off-by: wolfbing <liubing.wolf@gmail.com>