bugfix due to some strange RegExp failure when using /bla/g <-- the g caused the error