fix remaining time issue