utils: minor correction for resources vector copying