Remove unnecessary allocation