Fixed early return when creating many-to-many relations