Fixed leg overlap bugs.