fix bad initialization bug, add in protections against zero-sized cutflows