Make sure tmp channels are always instantiated.
Added clipping check.
Fix comment.