Fixes for SG

A completely chaotic and catastrophic PR.

Fighting against infinite digest cycles. Root of the error: Design of the plugin is still dependent on the very first run at it, which was done in a total hurry back in Boston. Bad idea, as the logic is a little flawed. It should suffice for now, but we should never do that again - and fix the SG plugin for good soon.

This will be a lot easier when we finally extract a service that is responsible for handling plugins only.