Fix model insert issue