Fix user summary accounting if pattern is given.