Fixed bug with matching market and limit orders