fix bug when copy from allocation to objective allocation