Give a real example, with as precise information as you can provide (specifying down to the second you placed the order, or even the microsecond, if available), and people here may be able to tell you what happened.
Such cases could occur due to internalized trades (brokers trading against...