fixed bug when creating new model on enter in example