fix: resource creation

Introduced in 9cd8bfbe.