Added resourceName, fixed relation child_added