Fixed regular expression problems for waiting steps.