Fix sample model in the library and json codec