Fix bug with deleting nested resource and not rerendering