Ref not found when using full relative path