Fix vm loading issue

closes #9