There are a couple of things you can do to help keep your hair in place. First, make sure your scrunchie is tight enough. If it's too loose, your hair will be able to slip out easily.
Secondly, try spraying your scrunchie with a light holding spray before putting it in your hair. This will help keep flyaways in place and prevent your hair from slipping out.