fixed bad pattern matching