Fixed bug in s_util add_resource