fix speed up bug