fix displaced end