Fixed a array out of bound access in debug menu

Signed-off-by: Hin Lam <max21226@Hin-Lams-iMac.local>