Fix Trim to Reference