Fix bug #1213 : Incorrect customer order stat