There are a few things you can try to prevent this from happening. First, make sure you are tying your laces tightly and securely. Second, you can try using clear elastic lacing locks or double knots to keep your laces from coming undone.