Fix bug #1213 : Incorrect customer order stat

Screenshot is ok but solution is better ;)