Small fixe in reference path handling.