Fix allocate to not rename jar, resolves #332