Fixed #530. Do not fail with self-referential inline models