Fixing trim error