fixed bugs with stats