Fix model require bug