fixed nested 'with' and one-to-many relations