[model] fixed notice when there is no repository