Separate paths properly