fix printCode
fix VM bug