Bug fixing: flags for regexp must be combined