Fix a bias problem
Use pattern match