prevent crash when joining a shape to nothing