fix bug in #require_vm