Small fix to resource merge