Hi,
if I understand well your problem, this is a known bug that we have already fixed and will be included in the next release.
You can download the "refactoring" branch from the Github repository and try your solution on top of that.
Please let us know if this solves your issue.
Best regards.
Giovanni