Fix push and pull in delta.apply