bug fix to get default pattern from the first argument.
tiny minor fix