Fix method for paths