Fix, correctly set the resourceHash for comparison