Fix: ensure that consecutive calls to path(..) are handled correctly