I updated the first mini-tutorial guide thanks to djohe. just remove the subq.b command. Including this is necessary as it can cancel the speed shoes while you gain invincibility and that wears off. Although, one alternative solution djohe suggested is to have Sonic flash while he still has stars so there wouldn't be an extension to Sonic's invincibility. While I'm yet to test it as of writing, once I attempt to add it successfully, I'll update the post.