some minor fixes for models service