At two years old, I don’t think she’s gonna grow out of it. What you could start doing is have her on a leash and practice having her in a ‘sit’ or ‘down’ while you open the door. If she gets up, close the door and try again. If she tries bolting, grab the leash. Also, if you don’t have a long line, I would get one and practice her recall.