Setting current path to transient since it cannot be serialized