Fixed a bug resulting in infinite recursion when attempting to make the path/slug unique