Small bugfix in path creation.