Fixed set time cost bug for edge