fixing the code for the new Starcounter version