[Fix] deltas is a global var