temporally setting wrap (fix all patterns, close #20)