Revert "Set correct resource after soft alloc"

This reverts commit fe741e13248c67f99c7c9185e866c0529523a791.