fix whichwrap doesn't work.