counting time fix