fix trim multiple entities, fix mirroring of xlines, rays