Adaption to new SC version
fixing the code for the new Starcounter version