EMI: Fix attach and detach coordinates.