Fixed custom path logig.