fix multiple resources bug

resources were overwriting previous resources, by undoing the commit
from package_update/create before package_update is called in our plugin