Fix issue with duplication

Prior to this commit we has duplication of the resources
as the hash did not match the line that was created