Work around a bug in PathJS