Good catch. I've removed the <code>$</code> from <code>$next</code>.