Order book bug fix