FIXED: Crash when attaching pieces.