Check if exchanges is None beffore splitting
Fix foreign key access in internal model