Fix epoch controling bug.