fix for wrap