fix delay bug for slow computer