fixed short backup messages index out of range error in emergency script