Fixed bug: was null pointing in writing model for nmr entries