Fix bug in cf_inner and fix all examples