Fix allocate bug