Fixed bug in after_update if resource is new