Fixed bugs of scenario rehearsal.