Fixed bug in undercut.