Fixed bug with paths