I changed the structure slightly and started emptying the buffer, as well as adding error checking for nonexistent subsystems and this seems to have solved the issue.
I changed the structure slightly and started emptying the buffer, as well as adding error checking for nonexistent subsystems and this seems to have solved the issue.