fixing the pattern match for #126