Fix minor mistake, committingChanges must always be called by
resourceChanged since we now flag it.