What we do is put some masking tape around the battery connection to secure it in place
how did you fix it
how many motors are you using on ur bot.