I assume you mean you got filled when the ask came down to the price of your limit bid. Not unusual.
If the best market is 10.20 - 10.30, and you bid 10.20, you'll only get filled if someone enters a sell market or sell limit 10.20 (or below), AND that order is directed to the exchange or ECN on which your order currently resides, AND there are no hidden orders at a higher price on that exchange, AND you are first in time priority at your price level.
If it's a SMART order (at IB), and the best offer comes down to 10.20 (on another exchange), IB should re-route the order and execute against that offer.