fixed countdown bug