Fixed storing for xml sub models