fixes minor bug with stats