modify bug for time