Thank you again @soegaard for your previous suggestion. I just published a comment on GitHub (Fixed bugs reported by @encomer on Slack. Thanks! · SuzanneSoy/scribble-math@a69b6fa · GitHub), with what seems to be a solution to the issue.
Best regards.