Fixed issue with multi patterns in formatter.