In an incorrect manner.
wrongly, erroneously
by accident, by mistake, in error (without intention to do so)