fix colliding figures