Fix bug with incorrect pattern matching for statman gauge