Possibly fixed resource creation error