fix failing stats tests