Fixed mapStats call not properly building header