fixed hits misstored for common; fixed bug with flow statswrite