fix bug of allocDepth mapping