Take archived contacts into account when reporting stats
Fix relation error