Fixed moedict wizard index out of bound bugs
Signed-off-by: Rack Lin <racklin@gmail.com>