General:
* Imperfectly
* Faultily
* Erroneously
* Deficiently
* Incompletely
* Inaccurately
* Unsoundly
More specific:
* For a weak reason: Precariously, tenuously, shakily
* With a lack of skill: Clumsily, ineptly, awkwardly
* With a lack of care: Carelessly, haphazardly, negligently
* With a lack of consistency: Inconstantly, erratically, inconsistently
Figurative:
* With a crack in the foundation: Flawed, brittle, fractured
* With a missing piece: Incomplete, unfinished, lacking
* With a tarnished sheen: Blemished, marred, imperfect
Example:
* "The building was constructed in a flawed way, leading to its collapse." (Could be replaced with: "The building was constructed unsoundly, leading to its collapse.")
Ultimately, the best word to use will depend on the specific situation and the desired tone.