Fixed bug with bulk stats functions. Refs #63