Fixed the flip count