imperfectly

In a way that has small mistakes or is not perfect.