fix undefined model value for external set up