Fixed order stats wrong foreign key