Missed replacing the cn_len lower in the function.