fixed type in pipeline and variable name error in stats.py