Fixed a bug where you might not dig a whole path.