Fixed bug in protein-reduce