fix pattern match bug