fix cost time bug