Fixed bug for creating new path