add two failure way for zigzag conversion

Signed-off-by: Mory Mobile <mory.mobile@gmail.com>