Fixed bug about not creating model at startup.