bugfix: alloc error because of overflow.