Fix z path