Fix relationship between Gallery and Item