[BUGFIX] Correctly assign workspace for rootline retrieval