fixed a bug that allocation timeout will errorly triggered even if allocation is finished