Fixed bug in rules during vm creation.
Merge branch 'test' into dev