Small syntax correction
Make cn a local variable, closes #2