bugfix: muiltiple optional patterns