fixed bug with not moving trimmed regions