fixed the creating empty resource records